package com.rc.pojo.po.table;

import com.mybatisflex.core.query.QueryColumn;
import com.mybatisflex.core.table.TableDef;

// Auto generate by mybatis-flex, do not modify it.
public class QuestionOptionTableDef extends TableDef {

    /**
     * 实体类。

 @author 27806
 @since 2024-06-29
     */
    public static final QuestionOptionTableDef QUESTION_OPTION = new QuestionOptionTableDef();

    public final QueryColumn ID = new QueryColumn(this, "id");

    public final QueryColumn IMG = new QueryColumn(this, "img");

    public final QueryColumn ILL_ID = new QueryColumn(this, "ill_id");

    public final QueryColumn CONTENT = new QueryColumn(this, "content");

    public final QueryColumn CORRECT = new QueryColumn(this, "correct");

    public final QueryColumn PLANT_ID = new QueryColumn(this, "plant_id");

    public final QueryColumn QUESTION_ID = new QueryColumn(this, "question_id");

    public final QueryColumn NEXT_QUESTION_ID = new QueryColumn(this, "next_question_id");

    /**
     * 所有字段。
     */
    public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");

    /**
     * 默认字段，不包含逻辑删除或者 large 等字段。
     */
    public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{ID, IMG, ILL_ID, CONTENT, CORRECT, PLANT_ID, QUESTION_ID, NEXT_QUESTION_ID};

    public QuestionOptionTableDef() {
        super("rc", "question_option");
    }

    private QuestionOptionTableDef(String schema, String name, String alisa) {
        super(schema, name, alisa);
    }

    public QuestionOptionTableDef as(String alias) {
        String key = getNameWithSchema() + "." + alias;
        return getCache(key, k -> new QuestionOptionTableDef("rc", "question_option", alias));
    }

}
